#include "QtUtil.h"

namespace QtUtil {

QString getTimestamp()
{
    QDateTime current_date_time = QDateTime::currentDateTime();
    QString dateTimeFileName = current_date_time.toString("yyyyMMdd-hhmmss");
    return dateTimeFileName;
}

double getRandomDouble()
{
    double value = QRandomGenerator::global()->generateDouble();
    return value * 1000;
}
} // namespace QtUtil
